<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of index
 *
 * @author bancan
 */
class Login extends Controller {

    public function __construct() {
        parent::__construct();
    }

    public function index() {
       
        $this->view->render('login/login');
    }

    public function dologin() {
        $data['username'] = $_POST['username'];
        $data['password'] = $_POST['password'];
        $this->model->login($data);
    }

}

?>
